<template>
    <el-table :data="list" :stripe="true" class="mainDiv" @row-click="dbclick" height="100%">
        <el-table-column prop="id" label="ID"></el-table-column>
        <el-table-column prop="name" label="职位名称"></el-table-column>
    </el-table>
</template>
<script>
import C from '#/src/common/common.js'

export default {
    name: 'addPosition',
    data() {
        return {
            list: []
        }
    },
    methods: {
        dbclick: function(row) {
            C.closeBrowserWindow(row)
        }
    },
    mounted: async function() {
        let res = await C.ajax('/organization/public/getplist')
        this.list = res
    }
}
</script>